-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comment Content: Add Border Support #64230
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +99 B (+0.01%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Flaky tests detected in 097e709. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/10355560822
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this one @shail-mehta 👍
It is testing pretty well although I did encounter an issue with box-sizing not being applied in the editor.
✅ Global Styles applies borders correctly to block
✅ Block instance styles override Global Styles borders
✅ Borders display correctly in both the editor and frontend
❓ Box sizing in editor doesn't appear to be set to border-box
✅ Box sizing on the frontend is border-box
allowing parent Group block to enforce a width
This is what I see in either editor. Note the selected Group block has a content width of 300px
set and the highlighted DOM element for Comment Content block being a greater width than 300px
.
@aaronrobertshaw Thank you for the Feedback. I will check border-box issue in editor side. |
@aaronrobertshaw I have Fixed Border Box Issue in Editor Side in Latest Commit. |
c1d3f64
to
097e709
Compare
e6719fd
to
57237e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work @shail-mehta ✨
This works well for me. I think it is time to merge.
✅ Global styles apply correctly
✅ Block instance styles override global styles
✅ Styles are applied correctly in both editors and frontend
✅ Box sizing allows parent to enforce width
✅ As padding control is displayed by default, border controls also make sense
What?
Add border block support to the
Comment Content
block.Part of #43247
Why?
Comment Content
block is missing border support.How?
Adds the border block support in block.json.
Testing Instructions
Comment Content
block's border is Configurable via Global Styles.Comment Content
block and Apply the border Styles.Comment Content
block styles take precedence over global Styles.Comment Content
block borders display correctly in both the Editor and Frontend.Screenshots or Screencast
add-border-support-in-comment-content-block.mp4